package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

import java.time.LocalDateTime;

@SpringBootApplication
@EnableScheduling //开启定时任务
public class SpringBootmybatisApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootmybatisApplication.class, args);
		System.out.println("项目启动完毕"+ LocalDateTime.now());
	}

	@Bean  //类似于spring.xml中 配置的<bean>标签
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}

}
